package com.guslegend.spzx.manager.controller;


import com.guslegend.spzx.manager.service.SysRoleUserService;
import com.guslegend.spzx.model.dto.system.AssginRoleDto;
import com.guslegend.spzx.model.vo.common.Result;
import com.guslegend.spzx.model.vo.common.ResultCodeEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: guslegend
 * @description:  用户角色控制层
 * @create: 2025-05-09 07:43
 **/
@RestController
@RequestMapping(value = "/admin/system/sysRoleUser")
public class SysRoleUserController {

    @Autowired
    private SysRoleUserService sysRoleUserService ;

    @PostMapping("/doAssign")
    public Result doAssign(@RequestBody AssginRoleDto assginRoleDto) {
        sysRoleUserService.doAssign(assginRoleDto) ;
        return Result.build(null , ResultCodeEnum.SUCCESS) ;
    }

}
